{extend name='table'}

{block name="content"}
<div class="layui-card">
  <div class="layui-card-header">详情</div>

  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
    <legend>时间线</legend>
  </fieldset>
  


    {foreach $logs as $key=>$log}
    <li class="layui-timeline-item">
      <i class="layui-icon layui-timeline-axis"></i>
      <div class="layui-timeline-content layui-text">
        <h3 class="layui-timeline-title"> {$key}</h3>
          {if $info.create_date == $key}
            <p>
              {$info.box_num}桶，420斤/桶，{$info.total_weight}
              {if $info.other_box_num} 次品{$info.other_box_num}桶，{$info.other_total_weight} {/if}
              <br>{$info.remark}
            </p>
          {/if}
          {foreach $log as $key=>$l}
          {$l.name}{if $l.num > 0}={$l.num}kg;{/if}
          {/foreach}
      </div>
    </li>
    {/foreach}
  </ul>
</div>
{/block}